<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<form:form id="inputForm" data-parsley-validate=""  modelAttribute="turnInVo" onsubmit="return saveCancleTurnOutLoad('mainCenterDiv','inputForm','${ctx}/nurse/wardCirculation/saveCancleTurnOutPatient','${ctx}/doctor/patVisit/index');" method="post" class="form-horizontal">
                <form:hidden path="id"/>
                <form:hidden path="patientId"/>
                <form:hidden path="patVisitId"/>
                <form:hidden path="bedRecId" id="bedRecId"/>
                <div class="form-group">
                    <label class="col-sm-4 control-label">姓名：</label>
                    <div class="col-sm-8">
                        <form:input path="name" htmlEscape="false" class="form-control"  maxlength="32" readonly="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">性别：</label>
                    <div class="col-sm-8">
                        <form:select path="sex" id="sex" class="form-control" data-parsley-required="true"  disabled="true">
                            <form:options items="${fns:getDictList('SEX_DICT')}" itemLabel="label" itemValue="value"  htmlEscape="false"/>
                        </form:select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">转出病区：</label>
                    <div class="col-sm-8">
                        <input readonly class="form-control"   value="${fns:getDeptName(turnInVo.deptTransferedFrom,'' )}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">转向病区：</label>
                    <div class="col-sm-8">
                        <input readonly class="form-control"  value="${fns:getDeptName(turnInVo.deptTransferedTo,'' )}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-4 control-label">转出时间：</label>
                    <div class="col-sm-8">

                        <input class="form-control"  maxlength="20" readonly value="<fmt:formatDate value="${turnInVo.transferDate}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>"/>
                    </div>
                </div>
            <div class="form-group">
                <label class="col-sm-4 control-label">入住新床号：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="bedNo"  maxlength="20" readonly value="" data-parsley-required="true"/>
                </div>
            </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">责任护士：</label>
                    <div class="col-sm-8">
                        <select name="upperDoctor" class="form-control">
                            <c:forEach items="${users}" var="u">
                                <option value="${u.id}" <c:if test="${turnInVo.directorDoctor eq u.id}" >selected</c:if>>${u.name}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">质控护士：</label>
                    <div class="col-sm-8">
                        <select name="directorDoctor" class="form-control">
                            <c:forEach items="${users}" var="u">
                                <option value="${u.id}" <c:if test="${turnInVo.directorDoctor eq u.id}" >selected</c:if>>${u.name}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">最后一次计费时间：</label>
                    <div class="col-sm-8">
                        <input class="form-control" name="lastAcctDateTim" maxlength="20" readonly value="<fmt:formatDate value="${turnInVo.lastAcctDateTim}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>"/>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="确 定">&nbsp;
                    <input id="btnCancel" class="btn" type="button" value="关 闭" onclick="closeCancelTurnOutForm()"></div>
            </div>
            </form:form>
